package study.cdc.canal.support.blogic;

import com.alibaba.otter.canal.protocol.CanalEntry;
import study.cdc.canal.support.canal.dispater.EntryContext;

import java.util.List;

public interface BLogic {

    void processBLogic(EntryContext context,
                       List<CanalEntry.Column> beforeColumnsLt,
                       List<CanalEntry.Column> afterColumnsLt);

    default void onInsert(List<CanalEntry.Column> afterColumnsLt) {
    }

    default void onDelete(List<CanalEntry.Column> beforeColumnsLt) {
    }

    default void onUpdate(List<CanalEntry.Column> beforeColumnsLt, List<CanalEntry.Column> afterColumnsLt) {
    }
}
